package tech.aistar.day05.test;

public class Sub extends Super {
	int j = 30;

	//先构建对象[初始化完毕],才走构造
	public Sub() {
		//super()
		System.out.println("---3.---");
		print();
		j = 40;
	}

	public void print() {
		System.out.println("---2.--4.--");
		System.out.println(j);
	}

	public static void main(String[] args) {
		System.out.println(new Sub().j);

		// 0 30  40
	}
}
